<template>
  <div class="InspectionResultsBrowse">
    <div class="return-backgorund" v-show="showReturn">
      <el-button type="text" size="mini" @click="returnTopViews" class="return-button">返回</el-button>
    </div>
    <div class="filter">
      <el-form ref="form" label-width="90px">
        <el-form-item label="点位类型:">
          <div class="el_consist" :style="{width: itemWidth + 'px', height: pointType.height}">
            <el-checkbox
              class="allCheckBox"
              :label="0"
              name="type"
              :indeterminate="pointType.checkType.length > 0 && pointType.checkType.length < pointType.types.length"
              v-model="pointType.checkAll"
              @change="handle_p_t_CheckAllChange"
            >全部</el-checkbox>
            <el-checkbox-group v-model="pointType.checkType" @change="handle_p_t_CheckChange">
              <el-checkbox
                v-for="item in pointType.types"
                :key="item.value"
                :label="item.value"
                name="type"
              >{{item.text}}</el-checkbox>
            </el-checkbox-group>
          </div>
          <el-checkbox
            :label="0"
            name="type"
            v-show="itemCount < pointType.types.length + 1"
            @change="handle_p_t_lookMore"
          >查看更多</el-checkbox>
        </el-form-item>
      </el-form>
    </div>
    <div class="left">
      <div class="left-head">设备树</div>
      <div class="tree-list">
        <Tree-List
          ref="TreeList"
          :showCheckbox="true"
          :data="deviceTreeList"
          :showIcon="true"
          :showState="true"
          @vtl_dataChange="treeDataChange"
          @vtl_nodeClick="vtl_nodeClick"
          @vtl_nodeLabelClick="vtl_nodeClick"
        ></Tree-List>
      </div>
    </div>
    <div class="right">
      <div class="right-top">
        <div class="right-operation">
          <el-form ref="form" label-width="80px">
            <el-form-item label="开始时间:">
              <el-date-picker
                v-model="recordHistory.startTime"
                type="date"
                placeholder="选择日期时间"
                value-format="yyyy-MM-dd"
                :picker-options="startPickerOptions"
              ></el-date-picker>
            </el-form-item>
            <el-form-item label="结束时间:">
              <el-date-picker
                v-model="recordHistory.endTime"
                type="date"
                placeholder="选择日期时间"
                value-format="yyyy-MM-dd"
                :picker-options="endPickerOptions"
              ></el-date-picker>
            </el-form-item>
            <el-form-item label>
              <el-radio-group
                v-model="recordHistory.checkStatus"
                @change="inspection_status_change_click"
              >
                <el-radio label="1">已审核</el-radio>
                <el-radio label="0">未审核</el-radio>
              </el-radio-group>
            </el-form-item>
            <!-- <el-form-item label="类型:" label-width="50px">
              <el-select size="mini" clearable placeholder="请选择" v-model="checkInspectionType">
                <el-option
                  v-for="item in inspectionType"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                ></el-option>
              </el-select>
            </el-form-item>-->
            <el-button class="but-query" type="text" size="medium" @click="query_data">
              <i class="query-icon"></i>查询
            </el-button>
            <el-button class="but-reset" type="text" size="medium" @click="reset_data">
              <i class="reset-icon"></i>重置
            </el-button>
            <el-button class="but-export" type="text" size="medium" @click="exportExcel">
              <i class="export-icon"></i>导出
            </el-button>
            <el-button
              class="but-confirm"
              type="text"
              size="medium"
              @click="centerDialogVisible = true"
              :disabled="this.multipleSelection.length <= 0"
            >
              <i class="confirm-icon"></i>批量确认
            </el-button>
          </el-form>
        </div>
        <div class="right-head">
          <span class="head-text">巡检结果</span>
        </div>
        <el-table
          ref="browSeTable"
          :data="tableData"
          border
          stripe
          highlight-current-row
          size="mini"
          class="right-list"
          style="width: 100%;"
          height="calc(100% - 88px)"
          :row-class-name="tableRowClassName"
          @row-dblclick="onRowClick"
          @selection-change="handleSelectionChange"
        >
          <el-table-column type="index" label="序号" align="center" width="50"></el-table-column>
          <el-table-column type="selection" align="center" width="55"></el-table-column>
          <el-table-column show-overflow-tooltip prop="task.name" label="任务名称"></el-table-column>
          <el-table-column show-overflow-tooltip prop="point.name" label="点位名称"></el-table-column>
          <el-table-column prop="reconTime" label="识别时间"></el-table-column>
          <el-table-column width="100px" prop="value" label="识别结果">
            <template slot-scope="scope">
              <span>{{scope.row ? matchArrayContentStr(scope.row.value, meterReadingDealWith) : "未知"}}</span>
            </template>
          </el-table-column>
          <el-table-column width="100px" label="审核结果">
            <template slot-scope="scope">
              <span>{{scope.row.checkStatus == 0 ? "未审核" : "已审核"}}</span>
            </template>
          </el-table-column>
          <el-table-column prop="reconType.name" label="识别类型"></el-table-column>
          <el-table-column prop="info" label="采集信息">
            <template slot-scope="scope">
              <el-button
                type="text"
                size="mini"
                class="picture-button"
                @click.stop="showImage(scope.row.flirPic)"
                :hidden="!(scope.row.point && (scope.row.point.saveTypeId === 1 || !scope.row.point.saveTypeId === 4))"
              >红外图片</el-button>
              <el-button
                type="text"
                size="mini"
                class="picture-button"
                @click.stop="showImage(scope.row.cameraPic)"
                :hidden="!(scope.row.point && (scope.row.point.saveTypeId === 2 || !scope.row.point.saveTypeId === 4))"
              >可见光图片</el-button>
            </template>
          </el-table-column>
        </el-table>
        <div class="pagination-area">
          <el-pagination
            layout="total, sizes, prev, pager, next, jumper, slot"
            @size-change="handleSizeChange"
            @current-change="handleCurrentChange"
            :page-sizes="[6, 12, 18, 24]"
            :page-size="recordHistory.size"
            :current-page="recordHistory.page"
            :total="tansksTotal"
          >
            <el-button type="text" size="mini">前往</el-button>
          </el-pagination>
        </div>
      </div>
      <div id="right_bottom" class="right-bottom">
        <div class="img-list">
          <ul>
            <li v-for="item in tableData" :key="item.id">
              <img
                class="item-img"
                :src="item.point && item.point.saveTypeId == 2 ? item.cameraPic : item.flirPic"
                alt
              />
              <div class="item-name">{{item.point.name}}</div>
            </li>
          </ul>
        </div>
        <div class="pagination-area">
          <el-pagination
            layout="total, sizes, prev, pager, next, jumper, slot"
            @size-change="handleSizeChange"
            @current-change="handleCurrentChange"
            :page-sizes="[6, 12, 18, 24]"
            :page-size="recordHistory.size"
            :current-page="recordHistory.page"
            :total="tansksTotal"
          >
            <el-button type="text" size="mini">前往</el-button>
          </el-pagination>
        </div>
      </div>
    </div>
    <DialogAlarm
      ref="DialogAlarm"
      dialogTitle="巡检结果审核"
      :data="tableData"
      :row="selectedRow"
      :isCanOperation="true"
      @change="confirm_finish_click"
    ></DialogAlarm>
    <el-dialog
      class="confirm_dialog"
      title="提示"
      :visible.sync="centerDialogVisible"
      width="20%"
      left
    >
      <div class="dialog-body">
        <div class="body-title">是否批量确认</div>
        <span slot="footer" class="dialog-footer">
          <el-button @click="centerDialogVisible = false">取 消</el-button>
          <el-button type="primary" @click="dialogConfirm()">确 定</el-button>
        </span>
      </div>
    </el-dialog>
  </div>
</template>
<script>
import {
  pointsTree,
  pointHistoryList,
  pointHistoryBatchConfirm,
  postOperationLogs
} from "@/api/apiManagement";
import DialogAlarm from "./components/DialogAlarm";
import { formatJson } from "@/utils";
import {
  dateToDateStr,
  getDateTopMonth,
  dateToDateWithToSecondStr
} from "@/utils/utilsMethod";
import Viewer from "viewerjs";
import "viewerjs/dist/viewer.css";
import TreeList from "@/components/TreeList";
import {
  matchArrayContent,
  PointType,
  MeterReadingDealWith
} from "@/utils/constant";

export default {
  components: { DialogAlarm, TreeList },

  data() {
    return {
      showReturn: this.$route.query.showReturn,
      robot_id: null,
      deviceTreeList: [],
      topDeviceTreeCheckList: "",

      defaultProps: {
        children: "children",
        label: "name",
        isLeaf: "leaf"
      },
      recordHistory: {
        page: 1,
        size: 6,
        robotId: 1,
        startTime: "",
        endTime: "",
        checkStatus: "0",
        alarmLevel: "",
        pointIds: "",
        taskHistoryId: this.$route.query.taskHistoryId
      },

      tableData: [],
      tansksTotal: 0,

      selectedRow: 0,
      viewer: null,

      // inspectionType: [{ value: 0, label: "点" }, { value: 1, label: "面" }],
      // checkInspectionType: 0,
      itemCount: 5,
      itemWidth: 220 * 5,
      pointType: {
        types: PointType,
        checkType: [],
        checkAll: false,
        height: "31px"
      },
      multipleSelection: [],
      centerDialogVisible: false,

      startPickerOptions: {
        disabledDate: time => {
          let endTime =
            this.recordHistory.endTime === null
              ? ""
              : this.recordHistory.endTime;
          return (
            time.getTime() > new Date(endTime).getTime() ||
            time.getTime() > Date.now() - 8.64e6
          );
        }
      },
      endPickerOptions: {
        disabledDate: time => {
          let startTime =
            this.recordHistory.startTime === null
              ? ""
              : this.recordHistory.startTime;
          return (
            time.getTime() <
              new Date(startTime).getTime() - 8 * 60 * 60 * 1000 ||
            time.getTime() > Date.now() - 8.64e6
          ); //如果没有后面的-8.64e6就是不可以选择今天的   减去一天的时间代表可以选择同一天
        }
      },
      meterReadingDealWith: MeterReadingDealWith
    };
  },
  created() {
    this.robot_id = localStorage.getItem("ydRobot_id");
    this.recordHistory.robotId = this.robot_id;
    this.recordHistory.startTime = dateToDateStr(getDateTopMonth(new Date()));
    this.recordHistory.endTime = dateToDateStr(new Date());
  },
  mounted() {
    this.itemCount = Math.floor((document.body.clientWidth - 100) / 220 - 1);
    this.itemCount = this.itemCount === 0 ? 1 : this.itemCount;
    this.itemWidth = this.itemCount * 220;
    // 点位树
    this.getPointsTree();
  },
  methods: {
    exportExcel() {
      require.ensure([], () => {
        if (this.tableData.length > 0) {
          const { export_json_to_excel } = require("vendor/Export2Excel");
          const tHeader = [
            "任务名称",
            "点位名称",
            "识别时间",
            "识别结果",
            "审核结果",
            "识别类型",
            "采集信息"
          ];
          const filterVal = [
            "task.name",
            "point.name",
            "reconTime",
            "value",
            "checkStatus",
            "reconType.name",
            "picUrl"
          ];
          let temp = JSON.parse(JSON.stringify(this.tableData));
          const data = formatJson(filterVal, this.formatAlartType(temp));
          export_json_to_excel(
            tHeader,
            data,
            "巡检结果浏览表" + dateToDateWithToSecondStr(new Date())
          );
        } else {
          this.$message({
            message: "请选择数据"
          });
        }
      });
    },
    formatAlartType(data) {
      let array = data.slice(0);
      array.forEach((item, index) => {
        item["checkStatus"] = item.checkStatus == 0 ? "未审核" : "已审核";
        var picUrl =
          item.point &&
          (item.point.saveTypeId === 1 || item.point.saveTypeId === 4)
            ? item.flirPic
            : item.point.saveTypeId === 2
            ? item.cameraPic
            : "";
        var picType =
          item.point &&
          (item.point.saveTypeId === 1 || item.point.saveTypeId === 4)
            ? "红外图片"
            : item.point.saveTypeId === 2
            ? "可见光图片"
            : "";
        item["picUrl"] = picType + "_" + picUrl;
        item["value"] = matchArrayContent(item["value"], MeterReadingDealWith);
      });
      return array;
    },
    getAlarmLevelClassName(value) {
      if (value === 0) {
        return "normal";
      }
      if (value === 1) {
        return "warning";
      }
      if (value === 2) {
        return "general-alarm";
      }
      if (value === 3) {
        return "serious-alarm";
      }
      if (value === 4) {
        return "danger-alarm";
      }
    },
    handleSizeChange(val) {
      this.recordHistory.size = val;
      this.alerm_PointAlarmRecord();
    },
    handleCurrentChange(val) {
      this.recordHistory.page = val;
      this.alerm_PointAlarmRecord();
    },
    // 点位树
    getPointsTree() {
      pointsTree()
        .then(response => {
          if (response) {
            this.deviceTreeList = response;
          }
        })
        .catch(() => {});
    },
    // 告警记录列表
    alerm_PointAlarmRecord() {
      this.recordHistory.startTime =
        this.recordHistory.startTime == null
          ? ""
          : this.recordHistory.startTime;
      this.recordHistory.endTime =
        this.recordHistory.endTime == null
          ? ""
          : this.recordHistory.endTime.length <= 10 &&
            this.recordHistory.endTime.length != 0
          ? this.recordHistory.endTime + " 24:00:00"
          : this.recordHistory.endTime;

      this.recordHistory.taskHistoryId =
        this.recordHistory.taskHistoryId === undefined
          ? ""
          : this.recordHistory.taskHistoryId;
      var parm = {
        page: this.recordHistory.page,
        size: this.recordHistory.size,
        robotId: this.recordHistory.robotId,
        startTime: this.recordHistory.startTime,
        endTime: this.recordHistory.endTime,
        checkStatus: this.recordHistory.checkStatus,
        alarmLevel: this.recordHistory.alarmLevel,
        pointIds: this.recordHistory.pointIds,
        taskHistoryId: this.recordHistory.taskHistoryId
        // pointType: this.checkInspectionType
      };
      pointHistoryList(parm)
        .then(response => {
          if (response) {
            this.tansksTotal = response.total;
            this.tableData = response.list;

            this.$nextTick(() => {
              if (this.viewer) {
                this.viewer.destroy();
                this.viewer == null;
              }

              const ViewerDom = document.getElementById("right_bottom");
              this.viewer = new Viewer(ViewerDom, {
                // 相关配置项,详情见下面
                show: function() {
                  this.viewer.update();
                }
              });
            });
          }
        })
        .catch(() => {});
    },
    // 批量确认 请求接口
    inspection_putBatchConfirm() {
      if (this.multipleSelection.length <= 0) return;
      let requestData = [];
      this.multipleSelection.forEach(function(el, index) {
        requestData.push(el.id);
      });
      pointHistoryBatchConfirm({ ids: requestData.join(",") })
        .then(response => {
          this.multipleSelection.forEach(item => {
            if (item.task) {
              this.setOperationLogs(
                "巡检-" + item.task.name + "任务-" + item.point.name + "的结果"
              );
            }
          });
          this.recordHistory.checkStatus = "1";
          this.$message({
            message: "操作成功",
            type: "success"
          });
          this.alerm_PointAlarmRecord();
        })
        .catch(() => {});
    },
    tableRowClassName({ row, rowIndex }) {
      row.index = rowIndex;
    },
    onRowClick(row, column, event) {
      this.selectedRow = row.index;
      this.$refs.DialogAlarm.isShowDia(true);
    },
    handleSelectionChange(val) {
      this.multipleSelection = val;
    },
    showImage(val) {
      var image = new Image();
      image.src = val;
      var viewer = new Viewer(image, {
        navbar: false,
        hidden: function() {
          viewer.destroy();
        }
      });
      viewer.show();
    },
    inspection_status_change_click(val) {
      this.recordHistory.checkStatus = val;
    },
    query_data() {
      var treeCheckList = this.$refs.TreeList.vtl_getCheckedNodes()
        .filter(item => item.leaf == true)
        .map(item => {
          if (typeof item.id === "string" && item.id.indexOf("point_") != -1) {
            let index = item.id.lastIndexOf("_");
            let slice = item.id.substring(index + 1);
            return slice;
          }
        });
      this.recordHistory.pointIds = treeCheckList.join(",");
      if (this.topDeviceTreeCheckList != this.recordHistory.pointIds) {
        this.recordHistory.page = 0;
        this.recordHistory.size = 6;
        this.tableData = [];
      }
      this.topDeviceTreeCheckList = this.recordHistory.pointIds;

      this.alerm_PointAlarmRecord();
    },
    reset_data() {
      this.$refs.TreeList.vtl_setCheckedNodesId([]);
      this.recordHistory.pointIds = this.getAllPointIds();

      this.topDeviceTreeCheckList = "";

      this.multipleSelection = [];
      this.recordHistory.page = 0;
      this.recordHistory.size = 6;
      this.recordHistory.startTime = dateToDateStr(getDateTopMonth(new Date()));
      this.recordHistory.endTime = dateToDateStr(new Date());
      this.recordHistory.checkStatus = "0";
      this.recordHistory.taskHistoryId = this.$route.query.taskHistoryId;
      this.alerm_PointAlarmRecord();
    },
    confirm_finish_click() {
      this.alerm_PointAlarmRecord();
    },
    returnTopViews() {
      this.$router.push({
        path: "/resultsConfirm/inspection-task-audit"
      });
    },
    treeDataChange(tree, list, obj) {
      this.recordHistory.pointIds = this.getAllPointIds();
      // 告警记录列表
      this.alerm_PointAlarmRecord();
    },
    vtl_nodeClick(list, table, index, data) {
      this.$refs.TreeList.vtl_setCheckedNodesSingleId({ id: data.id });
    },
    getAllPointIds() {
      var temp = this.$refs.TreeList.vtl_getLeafNodesId().map(item => {
        if (typeof item === "string" && item.indexOf("point_") != -1) {
          let index = item.lastIndexOf("_");
          let slice = item.substring(index + 1);
          return slice;
        }
        return "";
      });
      return temp.join(",");
    },
    handle_p_t_CheckAllChange(val) {
      this.pointType.checkType = val
        ? this.pointType.types.map(item => {
            return item.value;
          })
        : [];
      this.treeDataReorganization();
    },
    handle_p_t_CheckChange(val) {
      this.pointType.checkAll = this.pointType.types.length === val.length;
      this.treeDataReorganization();
    },
    handle_p_t_lookMore(val) {
      this.pointType.height = val ? "auto" : "31px";
    },
    // 树状数据重组
    treeDataReorganization() {
      this.$refs.TreeList.vtl_setCurrentNodeId({});
      this.$refs.TreeList.vtl_nodesFilter({
        deviceAreasList: [],
        deviceTypeList: [],
        recognitionTypeList: [],
        pointType: this.pointType.checkType,
        meterTypeList: [],
        deviceAppearanceTypeList: [],
        useList: []
      });
    },
    dialogConfirm() {
      this.inspection_putBatchConfirm();
      this.centerDialogVisible = false;
    },
    // 添加日志管理
    setOperationLogs(content) {
      var parm = {
        content: content,
        deviceId: localStorage.getItem("ydRobot_device_id"),
        type: 0
      };
      postOperationLogs(parm)
        .then(response => {})
        .catch(() => {});
    },
    // 匹配类型返回
    matchArrayContentStr(val, array) {
      return matchArrayContent(val, array);
    }
  }
};
</script>

<style>
.clearfix:after {
  content: "";
  display: block;
  height: 0;
  visibility: hidden;
  clear: both;
}
.clearfix {
  *zoom: 1;
}

.InspectionResultsBrowse {
  width: 100%;
  height: 100%;
}
.InspectionResultsBrowse .left {
  position: relative;
  width: 300px;
  height: 100%;
  /* background-color: #eeeeee; */
  background-color: #fff;
  border-right: 1px solid rgb(202, 231, 238);
  float: left;
}
.InspectionResultsBrowse .right {
  /* width: 100%; */
  width: calc(100% - 300px);
  height: 100%;
  background-color: #ffffff;
  border-left: 1px solid rgb(202, 231, 238);
  float: right;
  overflow: hidden;
}
.InspectionResultsBrowse .right-top {
  width: 100%;
  height: 372px;
  position: relative;
}
.InspectionResultsBrowse .right-bottom {
  width: 100%;
  /* height: 100%; */
  height: calc(100% - 372px);
  min-height: 300px;
  position: relative;
}
.InspectionResultsBrowse .left-head {
  width: 100%;
  height: 27px;
  padding: 0 5px;
  line-height: 27px;
  font-size: 13px;
  background: linear-gradient(
    rgb(227, 242, 238),
    rgb(202, 231, 238)
  ); /* 标准的语法 */
}
.InspectionResultsBrowse .tree-list {
  /* width: 100%;
  height: calc(100% - 27px);
  overflow-y: auto; */
  position: absolute;
  width: 100%;
  height: calc(100% - 27px);
  overflow: auto;
}

.InspectionResultsBrowse .right-operation {
  width: 100%;
  height: 27px;
  padding: 0 5px;
  line-height: 27px;
  font-size: 13px;
  background: linear-gradient(
    rgb(227, 242, 238),
    rgb(202, 231, 238)
  ); /* 标准的语法 */
}
.InspectionResultsBrowse .right-head {
  width: 100%;
  height: 27px;
  padding: 0 5px;
  line-height: 27px;
  font-size: 13px;
  background: linear-gradient(
    rgb(227, 242, 238),
    rgb(202, 231, 238)
  ); /* 标准的语法 */
}

.InspectionResultsBrowse .head-text {
  margin-left: 10px;
}
.InspectionResultsBrowse .right-list {
  width: 100%;
  /* height: 100%; */
  height: calc(100% - 88px);
  overflow: hidden;
  /* display: flex;
  flex-flow: column; */
}

.InspectionResultsBrowse .right-list .el-table__body-wrapper {
  /* overflow: hidden;
  overflow-y: auto;
  flex-grow: 1; */
}

.InspectionResultsBrowse .right-list .picture-button {
  margin-left: 0px;
  margin-right: 10px;
}

.InspectionResultsBrowse .img-list {
  width: 100%;
  height: calc(100% - 33px);
  padding: 2px 1px;
  overflow-y: auto;
}

.InspectionResultsBrowse .right-bottom .img-list ul,
.InspectionResultsBrowse .right-bottom .img-list li {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.InspectionResultsBrowse .right-bottom .img-list ul {
  width: 100%;
  height: 100%;
}

.InspectionResultsBrowse .right-bottom .img-list li {
  width: calc(100% / 4);
  height: calc(100% / 2);
  padding: 1px;
  float: left;
  text-align: center;
  vertical-align: middle;
  border: solid 2px #fff;
  background: #eeeeee;
}

.InspectionResultsBrowse .item-img {
  max-width: 100%;
  height: calc(100% - 21px);
}

.InspectionResultsBrowse .item-name {
  width: 100%;
  height: 20px;
  line-height: 20px;
  font-size: 12px;
}

.InspectionResultsBrowse .pagination-area {
  position: absolute;
  width: 100%;
  height: 32px;
  bottom: 0px;
  background-color: #eeeeee;
}

.InspectionResultsBrowse .left .custom-tree-node span {
  font-size: 13px;
}
.InspectionResultsBrowse .folder {
  width: 13px;
  height: 13px;
  margin-top: 3px;
  /* background-color: rgb(10, 158, 80); */
  background-image: url(../../../static/resources/images/folder.png);
  background-size: 100% 100%;
  float: left;
}
.InspectionResultsBrowse .file {
  width: 13px;
  height: 13px;
  margin-top: 3px;
  /* background-color: rgb(255, 0, 0); */
  background-image: url(../../../static/resources/images/file.png);
  background-size: 100% 100%;
  float: left;
}
.InspectionResultsBrowse .alarm {
  width: 12px;
  height: 13px;
  margin: 3px 2px 0 2px;
  float: left;
}
.InspectionResultsBrowse .normal {
  background-color: rgb(50, 150, 50);
}
.InspectionResultsBrowse .warning {
  background-color: rgb(0, 0, 255);
}
.InspectionResultsBrowse .general-alarm {
  background-color: rgb(255, 255, 0);
}
.InspectionResultsBrowse .serious-alarm {
  background-color: rgb(255, 128, 10);
}
.InspectionResultsBrowse .danger-alarm {
  background-color: rgb(155, 0, 0);
}
.InspectionResultsBrowse .right-operation .el-form-item {
  /* width: 300px; */
  width: auto;
  margin-top: 0;
  margin-bottom: 0;
  float: left;
}
.InspectionResultsBrowse .right-operation .el-form-item__label {
  line-height: 26px;
  float: left;
}
.InspectionResultsBrowse .right-operation .el-date-editor.el-input {
  width: 200px;
}
.InspectionResultsBrowse .right-operation .el-form-item__content {
  /* width: 200px; */
  margin-left: 5px !important;
  line-height: 26px;
  float: left;
}
.InspectionResultsBrowse .right-operation .el-input__inner {
  height: 26px;
  line-height: 26px;
}
.InspectionResultsBrowse .right-operation .el-input__icon {
  line-height: 26px;
}
.InspectionResultsBrowse .right-operation .el-radio {
  margin-left: 20px;
  margin-right: 0px;
}
/* .InspectionResultsBrowse .right-operation .el-radio + .el-radio {
  margin-left: 10px;
} */

.InspectionResultsBrowse .but-query,
.InspectionResultsBrowse .but-export,
.InspectionResultsBrowse .but-reset,
.InspectionResultsBrowse .but-confirm {
  height: 27px;
  margin-left: 20px;
  margin-right: 10px;
  padding: 0;
  font-size: 13px;
  color: #000;
  float: left;
}
.InspectionResultsBrowse .query-icon {
  width: 14px;
  height: 14px;
  margin-right: 3px;
  background-image: url(../../../static/resources/images/query.png);
  background-size: 100% 100%;
  float: left;
}
.InspectionResultsBrowse .export-icon {
  width: 14px;
  height: 14px;
  margin-right: 3px;
  background-image: url(../../../static/resources/images/export.png);
  background-size: 100% 100%;
  float: left;
}
.InspectionResultsBrowse .reset-icon {
  width: 14px;
  height: 14px;
  margin-right: 3px;
  background-image: url(../../../static/resources/images/reset_a.png);
  background-size: 100% 100%;
  float: left;
}
.InspectionResultsBrowse .confirm-icon {
  width: 14px;
  height: 14px;
  margin-right: 3px;
  background-image: url(../../../static/resources/images/confirm.png);
  background-size: 100% 100%;
  float: left;
}
.InspectionResultsBrowse .return-backgorund {
  background: linear-gradient(
    rgb(227, 242, 238),
    rgb(202, 231, 238)
  ); /* 标准的语法 */
}
.InspectionResultsBrowse .return-backgorund-hidden {
  display: none;
}
.InspectionResultsBrowse .return-button {
  color: black;
  margin-left: 5px;
  font-size: 14px;
}

.InspectionResultsBrowse .filter {
  position: relative;
  width: 100%;
  /* height: 65px; */
  background-color: #eeeeee;
}
.InspectionResultsBrowse .filter .el-form-item {
  margin-top: 0;
  margin-bottom: 0px;
  border-bottom: 1px solid #cae7ee;
}
.InspectionResultsBrowse .filter .el-form-item .el_consist {
  float: left;
  overflow: hidden;
}
.InspectionResultsBrowse .filter .el-form-item__label {
  font-size: 13px;
  line-height: 26px;
}
.InspectionResultsBrowse .filter .el-form-item__content {
  font-size: 13px;
  line-height: 26px;
}
.InspectionResultsBrowse .filter .el-checkbox {
  width: 80px;
  margin-left: 10px;
}
.InspectionResultsBrowse .filter .el-checkbox + .el-checkbox {
  margin-left: 10px;
}
.InspectionResultsBrowse .allCheckBox {
  float: left;
}

.InspectionResultsBrowse .el-dialog {
  background-color: rgb(215, 239, 236);
  padding-bottom: 5px;
}
.InspectionResultsBrowse .confirm_dialog .el-dialog__header {
  padding: 0px 5px;
}
.InspectionResultsBrowse .confirm_dialog .el-dialog__header .el-dialog__title {
  font-size: 13px;
}
.InspectionResultsBrowse .confirm_dialog .el-dialog__headerbtn {
  top: 3px;
  right: 10px;
}
.InspectionResultsBrowse .confirm_dialog .el-dialog__body {
  border: 1px solid #90e8c6;
  background-color: white;
  margin: 0px 5px;
  padding: 0px;
}
.InspectionResultsBrowse .confirm_dialog .dialog-body .body-title {
  margin: 20px 10px;
}
.InspectionResultsBrowse .confirm_dialog .dialog-footer {
  display: block;
  text-align: center;
  margin-bottom: 20px;
}
.InspectionResultsBrowse .confirm_dialog .dialog-footer .el-button {
  padding: 5px 25px;
  margin-top: 5px;
  font-size: 13px;
}
</style>